import PureCompanyForm from '../components/company-form';
import * as CompanyAction from 'actions/company';
import * as ReactRedux from 'react-redux';

const mapDispatchToProps = dispatch => {
  return {
    onCompanyInsert(company) {
      return dispatch(CompanyAction.create(company));
    },
    onCompanyUpdate(company) {
      return dispatch(CompanyAction.update(company));
    }
  };
};

export default ReactRedux.connect(undefined, mapDispatchToProps)(PureCompanyForm);
